//
//  ZHealhMidTableViewCell.m
//  DoctorFAQs
//
//  Created by zjq on 17/2/21.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "ZHealhMidTableViewCell.h"
@interface ZHealhMidTableViewCell (){
   
    UIView * _garyView;
}
@end
@implementation ZHealhMidTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    if (self) {
        [self initlizeInterface];
    }
    return self;
}

- (void)initlizeInterface {
    _titleName = [[UILabel alloc] init];
    _bottomLabel = [[UILabel alloc] init];
    _bottomLabel.textColor = KHGaryColor;
    _bottomLabel.textAlignment = NSTextAlignmentRight;
    _bottomLabel.font = [UIFont systemFontOfSize:15];
    _garyView = [[UIView alloc] init];
    _garyView.backgroundColor = MYGRAYCOLOR;
    [self.contentView addSubview:_titleName];
    [self.contentView addSubview:_bottomLabel];
    [self.contentView addSubview:_garyView];
    [_titleName mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(10*xsIZE);
        make.centerY.equalTo(self.contentView);
        make.width.offset(60*xsIZE);
        make.height.offset(15*ysIZE);
    }];
    [_bottomLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView).offset(-10*xsIZE);
        make.height.centerY.equalTo(_titleName);
        make.width.offset(120*xsIZE);
    }];
    [_garyView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.equalTo(self.contentView).multipliedBy(0.8);
        make.height.offset(1.5*ysIZE);
        make.bottom.centerX.equalTo(self.contentView);
    }];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


@end
